module PcSrcChooser (
    Branch,
    Jump,
    zero,
    PcSrc
);
    input [1:0] Branch;
    input [1:0] Jump;
    input zero;
    output PcSrc;
    parameter   BRANCHE = 2'b01,BRANCHN=2'b10, NOBRANCH = 2'b00;   
    assign PcSrc = Jump||(Branch==BRANCHE&&zero)||(Branch==BRANCHN&&!zero) ? 1'b1 : 1'b0;
endmodule //pc_src